using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Bird : MonoBehaviour
{
    private void FixedUpdate()
    {
        transform.Translate(Vector3.right*1.8f); 
    }
    private void Update()
    {
         if(transform.localPosition .x> 1000)
        {
            transform.localPosition = new Vector3(-1000, transform.localPosition.y, transform.localPosition.z);
        }
    }
}
